package za.org.jcicada.genss.lifecycle.messages;

import za.org.jcicada.genss.SystemURN;
import za.org.jcicada.genss.lifecycle.LogLevel;

/**
 * SetLogLevelRequest.java
 *
 * @author Simon Cross
 *
 * Created on December 18, 2008, 14:26
 */

/**
 * A SetLogLevelRequest message.
 */
public class SetLogLevelRequest extends SystemURNRequest {

    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * The desired log level for the component
     */
    private LogLevel level;
    
    /**
     * Create a SetLogLevelRequest message.
     * @param level the desired log level from the component
     */
    public SetLogLevelRequest(SystemURN systemURN, LogLevel level) {
        super(systemURN);
        this.level = level;
    }
    
    public LogLevel getLevel() {
        return level;
    }

}
